package me.stone.stanimeclient

import android.app.Application
import com.didi.drouter.api.DRouter
import dagger.hilt.android.HiltAndroidApp
import me.stone.stanimeclient.ui.DarkThemeModeImpl
import timber.log.Timber
import javax.inject.Inject

@HiltAndroidApp
class SACApplication: Application() {

    @Inject
    lateinit var darkThemeMode: DarkThemeModeImpl

    override fun onCreate() {
        super.onCreate()
        DRouter.init(this)
        if (BuildConfig.DEBUG) {
            Timber.plant(Timber.DebugTree())
        }
    }

}

object Constants {

    // DRoute paths
    const val DROUTE_PATH_FAN_INFO = "/fan/info"
    const val DROUTE_PATH_FAN_SEARCH = "/fan/search"

    // DRoute extra keys
    const val DROUTE_EXTRA_KEY_ID = "DK_ID"
    const val DROUTE_EXTRA_KEY_CONTENT = "DK_CONTENT"

}